﻿using Api.WDS.Operate;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Api.WDS.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class DisplayController : ControllerBase
    {
        [HttpGet("UserArticle")]
        public IActionResult UserArticle()
        {
            var token = HttpContext.Request.Query["Token"];
            var index = HttpContext.Request.Query["Index"];

            return Ok(new DisplayOp().GetUserArticleList(token, index));
        }
    }
}
